package exception;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/3/10
 **/
public class ThrowsDemo {
    public static void main(String[] args) {
        Student zs = new Student();
        try {
            zs.setAge(1000);
        } catch (IllegalAgeException e) {
            e.printStackTrace();
        }
        System.out.println("年龄为"+zs.getAge());
    }
}
